<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- 最新 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css">
    <!-- 可选的Bootstrap主题文件（一般不用引入） -->
    <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap-theme.min.css">
    <style type="text/css">
        body {
            background-color: #EEEEEE;
            padding-bottom: 40px;
            padding-top: 40px;
        }
        .form-signin {
            margin: 0 auto;
            max-width: 330px;
            padding: 15px;
        }
        .form-signin .form-signin-heading, .form-signin .checkbox {
            margin-bottom: 10px;
        }
        .form-signin .checkbox {
            font-weight: normal;
        }
        .form-signin .form-control {
            -moz-box-sizing: border-box;
            font-size: 16px;
            height: auto;
            padding: 10px;
            position: relative;
        }
        .form-signin .form-control:focus {
            z-index: 2;
        }
        .form-signin input[type="text"] {
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
            margin-bottom: -1px;
        }
        .form-signin input[type="password"] {
            border-top-left-radius: 0;
            border-top-right-radius: 0;
            margin-bottom: 10px;
        }
    </style>
</head>
<body>
<div class="container">

    <form role="form" class="form-signin">
        <h2 class="form-signin-heading">Please sign in</h2>
        <input type="text" autofocus="" required="" placeholder="Email address" class="form-control">
        <input type="password" required="" placeholder="Password" class="form-control">
        <%--<label class="checkbox">--%>
            <%--<input type="checkbox" value="remember-me"> Remember me--%>
        <%--</label>--%>
        <button type="submit" class="btn btn-lg btn-primary btn-block">Sign in</button>
        <a href="${url}" class="btn btn-lg btn-primary btn-block">速卖通登录</a>
    </form>


    <table class="table">
        <tbody>
        <c:forEach items="${products}" var="product">
            <tr>
                <td>${product.id}</td>
                <td>
                    <table class="table">
                        <tbody>
                        <c:forEach items="${product.skuList}" var="sku">
                            <tr>
                                <td>${sku.quantity}</td>
                                <td>${sku.attr}</td>
                                <td>${sku.image}</td>
                            </tr>
                        </c:forEach>
                        </tbody>
                    </table>
                </td>
            </tr>
        </c:forEach>
        </tbody>
    </table>


</div>
</body>

<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<%--<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>--%>
</html>